{load header}
<!--/H-->
<!-- 内容区 -->
<div id="main-content">
    <div id="top-alert" class="fixed alert alert-error" style="display: none;">
        <button class="close fixed" style="margin-top: 4px;">&times;</button>
        <div class="alert-content">这是内容</div>
    </div>
    <div id="main" class="main">

        <!-- nav -->
        <!-- nav -->


        <div class="main-title">
            <h2>网站数据配置</h2>
        </div>
        <div class="cf">
        </div>

        <div class="data-table">
            <div class="data-table table-striped">
                <form action="" method="post" class="form-horizontal">
                    <!-----table----->
                    <table class="table table-hover" style="width: 1100px;">
                        <thead>
                        <tr>
                            <th width='20%'>选项名称</th>
                            <th width='80%'>选项值</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>网站名称：</td>
                            <td><input type="text" class="text input-mid" name="web_name" value="{$item['web_name']}">
                            </td>
                        </tr>
                        <tr>
                            <td>网站网址：</td>
                            <td><input type="text" class="text input-mid" name="web_site" value="{$item['web_site']}">
                            </td>
                        </tr>
                        <tr>
                            <td>网站标题：</td>
                            <td><input type="text" class="text input-large" name="web_title"
                                       value="{$item['web_title']}"></td>
                        </tr>
                        <tr>
                            <td>网站关键字：</td>
                            <td><input type="text" class="text input-large" name="web_keyword"
                                       value="{$item['web_keyword']}"></td>
                        </tr>
                        <tr>
                            <td>网站描述：</td>
                            <td><textarea class="textarea" style="width:390px;" cols="40" rows="5" name="web_desc"
                                          placeholder="">{$item['web_desc']}</textarea></td>
                        </tr>
                        <tr>
                            <td>文章热门词：</td>
                            <td><input type="text" class="text input-large" name="article_hot_key"
                                       value="{$item['article_hot_key']}"><span class="check-tips">（多个用“,”隔开）</span>
                            </td>
                        </tr>
                        <tr>
                            <td>问答热门词：</td>
                            <td><input type="text" class="text input-large" name="wenda_hot_key"
                                       value="{$item['wenda_hot_key']}"><span class="check-tips">（多个用“,”隔开）</span></td>
                        </tr>
                        <tr>
                            <td>用户身份选项：</td>
                            <td><input type="text" class="text input-large" name="user_worker_type"
                                       value="{$item['user_worker_type']}"><span class="check-tips">（多个用“,”隔开）</span>
                            </td>
                        </tr>
                        <tr>
                            <td>用户收入选项：</td>
                            <td><input type="text" class="text input-large" name="user_income_type"
                                       value="{$item['user_income_type']}"><span class="check-tips">（多个用“,”隔开）</span>
                            </td>
                        </tr>
                        <tr>
                            <td>贷款平台热门搜索：</td>
                            <td><input type="text" class="text input-large" name="lend_keywork"
                                       value="{$item['lend_keywork']}"><span class="check-tips">（多个用“,”隔开）</span></td>
                        </tr>
                        <tr>
                            <td>任务平台押金比例：</td>
                            <td><input type="text" class="text input-large" name="task_deposit_percent"
                                       value="{$item['task_deposit_percent']}"><span class="check-tips">（%）</span></td>
                        </tr>
                        <tr>
                            <td>任务平台赞助费用比例：</td>
                            <td><input type="text" class="text input-large" name="task_sponsorship_money_percent"
                                       value="{$item['task_sponsorship_money_percent']}"><span class="check-tips">（%）</span></td>
                        </tr>
                        <tr>
                            <td>任务平台任务完成时间：</td>
                            <td><input type="text" class="text input-large" name="task_fail_period"
                                       value="{$item['task_fail_period']}"><span class="check-tips">（超过时间不完成任务，自动失败。单位：小时）</span></td>
                        </tr>
                        <tr>
                            <td>任务平台任务申诉时间：</td>
                            <td><input type="text" class="text input-large" name="task_judgefail_period"
                                       value="{$item['task_judgefail_period']}"><span class="check-tips">（任务验证失败，超过时间未申诉，自动失败。单位：小时）</span></td>
                        </tr>
                        <tr>
                            <td>任务平台申诉处理时间：</td>
                            <td><input type="text" class="text input-large" name="task_promulgator_period"
                                       value="{$item['task_promulgator_period']}"><span class="check-tips">（任务申诉，发布方超过时间未处理，自动通过申诉。单位：小时）</span></td>
                        </tr>
                        <tr>
                            <td>任务平台客服介入时间：</td>
                            <td><input type="text" class="text input-large" name="task_receiver_period"
                                       value="{$item['task_receiver_period']}"><span class="check-tips">（申诉失败，超过时间未申请客服，自动失败。单位：小时）</span></td>
                        </tr>
                        </tbody>
                    </table>
                    <br/>
                    <div class="form-item">
                        <button class="btn submit-btn ajax-post" id="submit" type="submit"
                                target-form="form-horizontal">确定修改
                        </button>
                    </div>
                </form>
                <!-----/table----->
                <!-- 分页 -->
            </div>
        </div>


    </div>
</div>
<script type="text/javascript">
    $(function () {
        $(".submit-btn").click(function () {
            var that = this;
            var _status = $.trim($(this).attr("id"));
            _status = _status == "submit_yes" ? 1 : 0;
            var _nid = $.trim($("#order_nid").val());
            var _number = $.trim($("#express_number").val());
            if (_number == "" || _number == undefined) {
                _number = "";
            }
            var _remark = $.trim($("#remark").val());
            $.ajax({
                url: "",
                async: false,
                dataType: "json",
                type: "post",
                data: {status: _status, number: _number, nid: _nid, remark: _remark},
                success: function (data) {

                    if (data.status == 1) {
                        if (data.url) {
                            updateAlert(data.info + ' 页面即将自动跳转~', 'alert-success');
                        } else {
                            updateAlert(data.info, 'alert-success');
                        }
                        setTimeout(function () {
                            if (data.url) {
                                location.href = data.url;
                            } else if ($(that).hasClass('no-refresh')) {
                                $('#top-alert').find('button').click();
                                $(that).removeClass('disabled').prop('disabled', false);
                            } else {
                                location.reload();
                            }
                        }, 1500);
                    } else {
                        updateAlert(data.info);
                        setTimeout(function () {
                            if (data.url) {
                                location.href = data.url;
                            } else {
                                $('#top-alert').find('button').click();
                                $(that).removeClass('disabled').prop('disabled', false);
                            }
                        }, 1500);
                    }
                }
            });
        });
    });
</script>
<!--F-->{load footer}